import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Test02 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String str="ai你哟";
        byte[] byte1=str.getBytes();
        System.out.println(Arrays.toString(byte1));
        byte[] byte2=str.getBytes("GBK");
        System.out.println(Arrays.toString(byte2));
        String str2=new String(byte1);
        System.out.println(str2);
        String str3=new String(byte2,"GBK");
        System.out.println(str3);



    }
}
